
// Check to see if the client has an older version installed
if (PCMod) then
	// The PCMod table exists, there might be trouble
	if ((PCMod.Exists) && (PCMod.Version == "13")) then
		// The client has an old version installed. This WILL cause problems! Warn them!
		
		PCMod.ShowWarning = true
		
		hook.Add( "HUDPaint", "DrawPCWarning", function()
			if (!PCMod.ShowWarning) then return end
			local w = ScrW()
			local h = ScrH()
			surface.SetDrawColor( 255, 0, 0, 200 )
			surface.DrawRect( 0, h*0.85, w, h*0.15 )
			local warning1 = "Warning! This server uses PCMod Release V1.0.0 and you have V13 or less installed."
			local warning2 = "You will have problems! Please delete the PCMod folder out of your addons folder."
			local warning3 = "Type 'pc_hidewarning' in console to hide this warning."
			draw.SimpleText( warning1, "PCText", w*0.5, h*0.855, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP )
			draw.SimpleText( warning2, "PCText", w*0.5, h*0.905, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP )
			draw.SimpleText( warning3, "PCText", w*0.5, h*0.955, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_TOP )
		end )
		
		concommand.Add( "pc_hidewarning", function( ply, com, args ) PCMod.ShowWarning = false end )
		
	end
end

// Add the core file
include( "pcmodcore/cl_pcmod.lua" )